import { defHttp } from '/@/utils/http/axios'
import { DeviceRecordSo, DeviceRecordResult } from './model/deviceRecordModel'
import { BasicFetchResult, BasicPageParams } from '/@/api/model/baseModel'

enum Api {
  // GetMenuList = '/getMenuList',
  listDeviceRecord = '/record/list',
}

/**
 * @description: Get user menu based on id
 */

export const listDeviceRecord = (data: BasicPageParams<DeviceRecordSo>) => {
  return defHttp.post<BasicFetchResult<DeviceRecordResult>>({ url: Api.listDeviceRecord, data })
}
